{% extends 'admin/admin_nav.html' %}
{% block head %}
    <title>修改新闻</title>
{% endblock %}
{% block content %}

    <form role='form' class="form-horizontal" method="post">
        <div class="form-group">
            <label for="exampleInputEmail1">{{ form.title.label.text }}</label>
            <div>
                {{ form.title }}
            </div>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">{{ form.author.label.text }}</label>
            <div>
                {{ form.author }}
            </div>

        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">{{ form.types.label.text }}</label>
            <div>
                {{ form.types}}
            </div>
        </div>
        <div class="form-group">
            <label for="exampleInputFile">{{ form.image.label.text }}</label>
            <input type="file" name="image" id="exampleInputFile">
            {{ form.image }}
        </div>
        <div class="form-group">
            {{ form.content }}
        </div>

        <br>
        {{ form.csrf_token }}
        {{ form.submit }}

    </form>
{% endblock %}
</body>
</html>

